import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.Configuration;

public class NewComputer {
    //制作一个电脑
    public static void main(String[] args) {
        Computer computer=new Computer();
        computer.init();
    }
    //电脑对象
    static class Computer{
        public void init(){
            //依赖配置
            Configuration configuration=new Configuration();
            configuration.init();
        }
    }
    //配置对象
    static class Configuration{
        public void init(){
            //依赖硬件
            Hardware hardware=new Hardware();
            hardware.init();
        }
    }
    //配置硬件
    static class Hardware{
        public void init(){
            //依赖CPU
            Cpu cpu=new Cpu();
            cpu.init();
        }
    }
    //配置CPU
    static class Cpu{
        private String model = "Intel的酷睿core系列";
        public void init(){
            System.out.println("CPU型号——>"+model);
        }
    }
}
